<div class="grid_3 alpha mainMenu">
	<?= $this->widget('navigation', 'navigation', array('menu_id' => 1));?>
</div>
<div class="grid_9 news">
	<h1><?= $this->translate('RESULTS OF SEARCH');?></h1>
	<?= $this->form;?>
	<p><?= $this->translate('Results:');?> <?= count($this->hits);?></p>
	<?php if(count($this->hits) > 0):?>
		<?php foreach($this->hits as $hit):?>
			<?php $lang_array = explode('_', $hit->word_id);?>
			<?php if($this->LANG == $lang_array[1]):?>
				<div class="search_result">
					<a href="<?= $hit->uri;?>" class="title_search">
						<?= $hit->name;?>
					</a>
					<div>
						<?= $this->userQuery->htmlFragmentHighlightMatches($hit->name . ' ' . $hit->content, 'UTF-8');?>
					</div>
				</div>
			<?php endif;?>
		<?php endforeach;?>
	<?php else: ?>
		<?= $this->translate('On your request nothing has been found.');?>
	<?php endif; ?>
</div>